package com.mars.common.utils;

public final class MarsConstant {

    public final static String PICTURE_TEST_REDIS = "marsTestPicture";

    public final static String GATEWAY_VALUE = "marsGatewayValue";
    public final static String GATEWAY = "gateway";

    public final static String GATEWAY_KEY = "marsGatewayKey";
    public final static String FEIGN_KEY = "marsFeignKey";

    /**
     * 图片
     */
    public enum pictureType {
        //图片分类及存储位置信息
        MD("MD", "临时图片","mars-1306600834","picture/"),
        ALBUM("Album", "相册图片","mars-1306600834","picture/");
        private String type;
        private String value;
        private String bucket;
        private String path;

        pictureType(String type, String value, String bucket, String path) {
            this.type = type;
            this.value = value;
            this.bucket = bucket;
            this.path = path;
        }

        public String type() {
            return type;
        }

        public String value() {
            return value;
        }

        public String bucket() {
            return bucket;
        }

        public String path() {
            return path;
        }
    }

    /**
     * 基本状态
     */
    public enum StatusEnum {
        //正常
        ENABLE("正常", "0"),
        //禁用
        DISABLE("禁用", "-1");
        private String key;
        private String value;

        StatusEnum(String key, String value) {
            this.key=key;
            this.value=value;
        }

        public String value() {
            return value;
        }

        public String key() {
            return key;
        }
    }
}
